for x in range(1,10):
    for y in range(1,10):
        if x>y:
            print('{}*{}'.format(x,y),end=' ')
        elif x==y:
            print('{}*{}'.format(x,y))
        else:
            break   
